package com.hyj.myRibbonRule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyRIbbonRule {
    @Bean
    public IRule rule() {
        //简单,改默认(ZoneAvoidanceRule???)为随机
        return new RandomRule();
    }
}
